package com.edu.controller;

import com.edu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.DependsOn;
import org.springframework.stereotype.Controller;

/*
 * @Author:princess
 * @Date 2023/10/24 10 24 20:29
 *
 */
@Controller
//@DependsOn({"UserServiceImpl"})
public class UserController {
    @Autowired
    private UserService userService;
    public void login(){
        System.out.println("执行了controller 的登录方法,并调用业务层");
        userService.userLogin();
    }
}
